from django.urls import path, re_path
from . import views

urlpatterns = [
    #  /recruits/search/recommend/
    re_path(r'^recruits/search/recommend/$', views.RecommendListView.as_view()),

    # recruits/search/latest/
    re_path(r'^recruits/search/latest/$', views.LatestListView.as_view()),

    # enterprise/search/hotlist/
    re_path(r'^enterprise/search/hotlist/$', views.EnterpriseHotListListView.as_view()),

    # city/hotlist/
    re_path(r'^city/hotlist/$', views.CityHostListListView.as_view()),

    # recruits/{id}/  (?P<pk>\d+)/
    re_path(r'^recruits/(?P<pk>\d+)/$', views.RecruitsDetailsListView.as_view()),

    # recruits/{id}/visit/
    re_path(r'^recruits/(?P<pk>\d+)/visit/$', views.JobVisitListView.as_view()),

    # enterprise/{id}/visit/
    re_path(r'^enterprise/(?P<pk>\d+)/visit/$', views.EnterpriseVisitListView.as_view()),

    # enterprise/{id}/
    re_path(r'^enterprise/(?P<pk>\d+)/$', views.EnterpriseDetailListView.as_view()),

    # enterprise/{id}/collect/
    re_path(r'^enterprise/(?P<pk>\d+)/collect/$', views.EPCollectListView.as_view()),

    # /enterprise/3/cancelcollect/
    re_path(r'^enterprise/(?P<pk>\d+)/cancelcollect/$', views.EPCancelCollectListView.as_view()),

    # /recruits/{id}/collect/
    re_path(r'^recruits/(?P<pk>\d+)/collect/$', views.JobCollectListView.as_view()),

    # #  recruits/4/cancelcollect/
    re_path(r'^recruits/(?P<pk>\d+)/cancelcollect/$', views.JobCancelCollectListView.as_view()),

    # # recruits/search/city/keyword/
    re_path(r'^recruits/search/city/keyword/$', views.SearchKeywordListView.as_view()),

    # 索引视图
    # re_path(r'^search/$', views.SearchKeywordViewSet),
]
